﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.ViewModels.HocVienDetailViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<% if (Model != null && Model.hocVienModel != null)
   { %>    

        <legend>
        Thông Tin Học Viên
    </legend>

    <div class="control-group">
        <div class="display-label">Tên Đăng Nhập: 
        <%: Model.hocVienModel.TaiKhoan.MaTaiKhoan%></div>
    </div>
        
    <div class="control-group">
        <div class="display-label">Tên Học Viên: 
        <%: Model.hocVienModel.TaiKhoan.HoTen%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Địa Chỉ: 
        <%: Model.hocVienModel.TaiKhoan.DiaChi%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Điện Thoại: 
        <%: Model.hocVienModel.TaiKhoan.DienThoai%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Ngày Sinh: 
        <%: Model.hocVienModel.TaiKhoan.NgaySinh.ToString() != "" ? Model.hocVienModel.TaiKhoan.NgaySinh.Value.ToString("dd/MM/yyyy") : ""%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Nghề Nghiệp: 
        <%: Model.hocVienModel.TaiKhoan.NgheNghiep%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Nơi Công Tác: 
        <%: Model.hocVienModel.TaiKhoan.NoiCongTac%></div>
    </div>

    <div class="control-group">
        <div class="display-label">Lớp: 
        <%: 
            Model.hocVien_LopViewModel != null ? Model.hocVien_LopViewModel.LopHocReference.Value.TenLopHoc : ""
        %></div>

    </div>

    <legend>
    Thông Tin Người Liên Hệ
    </legend>

    <fieldset>
        <div class="control-group">
            <div class="display-label">Họ Tên Người Liên Hệ: 
            <%: Model.hocVienModel.HoTenLienHe%></div>
        </div>

        <div class="control-group">
            <div class="display-label">Mối Quan Hệ: 
            <%: Model.hocVienModel.MoiQuanHe%></div>
        </div>

        <div class="control-group">
            <div class="display-label">Địa Chỉ Người Liên Hệ: 
            <%: Model.hocVienModel.DiaChiNguoiLienHe%></div>
        </div>

        <div class="control-group">
            <div class="display-label">Điện Thoại Người Liên Hệ: 
            <%: Model.hocVienModel.DienThoaiNguoiLienHe%></div>
        </div>

        <div class="control-group">
            <div class="display-label">Email Người Liên Hệ: 
            <%: Model.hocVienModel.EmailNguoiLienHe%></div>
        </div>

    </fieldset>

 <%--<legend>
    Tình Trạng Lớp Học
    </legend>

    <fieldset>
        <div class="control-group">
            <div class="display-label">Tình trạng lớp học: 
                <%=
                    Model.hocVien_LopViewModel != null  ? Model.hocVien_LopViewModel.LopHocReference.Value.TinhTrang : ""
                %>
            </div>
        </div>

        <div class="control-group">
            <div class="display-label">Tình trạng thu phí: 
                <%= 
                    Model.hocVien_LopViewModel != null ? Model.hocVien_LopViewModel.DongHocPhi == 0?"Chưa Đóng":"Đóng rồi" : ""
                %>
            </div>
        </div>

    </fieldset>--%>

    <div class="btn btn-primary">
        <a href="<%=ResolveUrl("~/Admin/HocVien/Index") %>">
        <button class="btn btn-primary">
        <i class="icon-reply"></i>
            Quay lại danh sách
        </button></a>
    </div>
    <%--<p>
        <%: Html.ActionLink("Chỉnh Sửa Thông Tin", "Edit", new { id=Model.ID }) %> |
        <%: Html.ActionLink("Quay Về Danh Sách", "Index")%>
    </p>--%>

<% }
   else
   { %>
   <div>
   </br>
    <h3>Hiện Không Có Dữ Liệu!</h3>
   </div>
<% } %>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

